import Layout from '@/layout'

const myClient = {
  path: '/my-clients',
  component: Layout,
  redirect: '/my-clients/new-clients',
  name: 'MyClients',
  meta: { title: '我的客户', icon: 'my-clients' },
  alwaysShow: true,
  url: '/my-clients',
  children: [
    {
      path: 'new-clients',
      name: 'NewClients',
      component: () => import('@/views/my-client/new-customer/NewCustomer'),
      meta: { title: '新客户' }
    },
    {
      path: 'add-client',
      component: () => import('@/views/my-client/new-customer/AddCustomer'),
      name: 'addClient',
      meta: {
        title: '添加客户',
        noCache: true,
        activeMenu: '/my-clients/new-clients',
        edit: true
      },
      hidden: true
    },
    {
      path: 'company',
      name: 'systemCompany',
      component: () => import('@/views/system/company'),
      meta: { title: '公司信息(重要)',edit: true },
      hidden: true
    },
    {
      path: 'my-lock',
      name: 'myLock',
      component: () => import('@/views/my-client/myLock'),
      meta: { title: '锁定客户' }
    },
    {
      path: 'redistribute-customer',
      name: 'RedistributeCustomer',
      component: () => import('@/views/my-client/redistribute-customer/RedistributeCustomer'),
      meta: { title: '再分配客户' }
    },
    {
      path: 'help-customer',
      name: 'HelpCustomer',
      component: () => import('@/views/my-client/help-customer/HelpCustomer'),
      meta: { title: '协助客户' }
    },
    {
      path: 'all-customer',
      name: 'AllCustomer',
      component: () => import('@/views/my-client/all-customer/AllCustomer'),
      meta: { title: '我的全部客户' }
    },
    {
      path: 'my-complete_customer',
      name: 'myCompleteCustomer',
      component: () => import('@/views/my-client/myCustomerComplete/index.vue'),
      meta: { title: '我的成交客户' }
    },
    {
      path: 'my-contract',
      name: 'MyContract',
      //name: '我的签约',
      component: () => import('@/views/my-client/my-contract/MyContract'),
      meta: { title: '我的签约' }
    },
    {
      path: 'add-contract',
      // name: 'MyContract',
      name: 'addContract',
      component: () => import('@/views/my-client/my-contract/AddContract'),
      meta: {
        title: '添加签约',
        noCache: true,
        activeMenu: '/my-clients/my-contract',
        edit: true
      },
      hidden: true
    },
    {
      path: 'my-input',
      name: 'MyInput',
      component: () => import('@/views/my-client/my-input/MyInput.vue'),
      meta: { title: '我的进件' }
    },
    {
      path: 'add-input',
      // name: 'MyContract',
      name: 'AddInput',
      component: () => import('@/views/my-client/my-input/Form.vue'),
      meta: {
        title: '添加签约',
        noCache: true,
        activeMenu: '/my-clients/my-input',
        edit: true
      },
      hidden: true
    },
    {
      path: 'electronicSign',
      name: 'electronicSign',
      component: () => import('@/views/my-client/electronicSign'),
      meta: {
        title: '电子签约',
        noCache: true,
        activeMenu: '/my-clients/my-contract',
        edit: true
      },
      hidden: true
    },
  ]
}

export { myClient }
